package chuishop.yiqimaicai.service.Impl;

import chuishop.yiqimaicai.mapper.OrderformMapper;
import chuishop.yiqimaicai.service.OrderformService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderformImpl implements OrderformService {
    //
    @Autowired
    private OrderformMapper orderformMapper;
    @Override
    public List<chuishop.yiqimaicai.pojo.Orderform> findAllOrderform() {
        return orderformMapper.findAllOrderform();
    }

    @Override
    public List<chuishop.yiqimaicai.pojo.Orderform> selectOrderform(String input) {
        return orderformMapper.selectOrderform(input);
    }

    @Override
    public boolean addOrderform(chuishop.yiqimaicai.pojo.Orderform orderform) {
        return orderformMapper.addOrderform(orderform)>0;
    }

    @Override
    public boolean deleteOrderform(String[] ids) {
        return orderformMapper.deleteOrderform(ids)>0;
    }

    @Override
    public boolean updateOrderform(chuishop.yiqimaicai.pojo.Orderform orderform) {
        return orderformMapper.updateOrderform(orderform)>0;
    }
}
